From: Ingo Heinrich Date: Sat, 4 Mar 2023 11:17:50 +0000 (+0100) Subject: luci-mod-status: nftables add counter and comment for empty match X-Git-Url: http://git.openwrt.org/%22https:/collectd.org//%22/%22https:/collectd.org/%22?a=commitdiff_plain;h=5f10c89f28feda53f8de4283484120d86e72829b;p=project%2Fluci.git luci-mod-status: nftables add counter and comment for empty match Signed-off-by: Ingo Heinrich (cherry picked from commit 8c7c56f4e415a3b80bf91c98aa02a638111bef51) --- diff --git a/modules/luci-mod-status/htdocs/luci-static/resources/view/status/nftables.js b/modules/luci-mod-status/htdocs/luci-static/resources/view/status/nftables.js index 33a19bee2b..7b1a3badb2 100644 --- a/modules/luci-mod-status/htdocs/luci-static/resources/view/status/nftables.js +++ b/modules/luci-mod-status/htdocs/luci-static/resources/view/status/nftables.js @@ -508,7 +508,7 @@ return view.extend({ } if (empty) - dom.content(row.childNodes[0], E('em', [ _('Any packet', 'nft match any traffic') ])); + dom.append(row.childNodes[0], E('span', { 'class': 'ifacebadge' }, '%h'.format(_('Any packet', 'nft match any traffic')))); return row; },